/**
 * List prompt example
 */

'use strict';
var inquirer = require('inquirer'),
fs=require('fs');



inquirer.prompt([
  {
    type: 'rawlist',
    name: 'theme',
    message: 'What\'s project do you want to install?',
    choices: [
      'nui.v.0.1',
      'nui.v.0.2'
    ]
  } ,
  {
    type: 'input',
    name: 'install_path',
    message: 'What\'s your project install_path',
    default: function () {
      return __dirname;
    }
  },
   {
    type: 'confirm',
    name: 'isStrict',
    message: 'open strict mode',
    default: function () {
      return true;
    }
  }
]).then(function (answers) {
 fs.writeFile('./lib/init.json', JSON.stringify(answers, null, '  '), (err) => {
  if (err) throw err;
  console.log('The install init has success!');
});
});
